home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / STUTTGART / GAMES / ANGBAND2 / Compiling_ReadMe < prev    next >
Encoding:
Text File  |  1996-01-03  |  1.8 KB  |  60 lines

  1. To compile Angband:
  2. -------------------
  3.  
  4. 0) You will need Acorn C/C++ and OSLib 5.1. Other compilers
  5.    may be suitable, but you will need to muck around with
  6.    the Makefile, and you will need to find a replacement
  7.    for eventlib.
  8.  
  9. 1) Download the source tree. The Angband 2.7.9 source tree
  10.    contains everything you need to compile RISC OS Angband.
  11.  
  12. 2) Dearchive it using some suitable utility, such as SparkFS.
  13.    Make sure it translates filenames such as Makefile.ibm to
  14.    Makefile/ibm.
  15.  
  16. 2) Merge its lib directory with your !Angband.lib directory.
  17.  
  18. 3) Create a directory src inside !Angband, and directories
  19.    c, h, and o inside src.
  20.  
  21. 4) Copy as much of the source tree src directory into your src
  22.    directory as you can (it's >77 files). You can delete all
  23.    the Makefiles, except Makefile.acn, which you should rename
  24.    to Makefile. A-mac-h.pch can go as well.
  25.    
  26. 5) Make sure that Angband$Dir is pointing to the correct
  27.    !Angband application by double-clicking on !Angband.!Boot.
  28.    Run the enclosed ConvSource program. This will rename */c
  29.    and */h to c.* and h.*.
  30.  
  31. 6) Do steps 4 & 5 again with any source files you couldn't fit
  32.    in the first time round.
  33.  
  34. 7) Make sure all the c and h files, and the Makefile are set
  35.    to type Text.
  36.  
  37. 8) A slight bugfix needs to be made to the main-acn.c in
  38.    the Angband 2.7.9 (v1) source tree:
  39.    
  40.      At line 492, after:
  41.      
  42.         if (buf > 0 && have_caret || (t=os_read_monotonic_time())-last_poll >= 10)
  43.         {
  44.      
  45.      add:
  46.      
  47.             /* If buf > 0, probably didn't set t in the line above */
  48.             if (buf > 0)
  49.                 t=os_read_monotonic_time();
  50.      
  51.      
  52.  
  53. 9) You can now compile Angband using by dragging Makefile to
  54.    !AMU. Examine config.h and Makefile for the various options
  55.    available.
  56.  
  57.  
  58.  
  59. Kevin Bracey (kevin@iota.co.uk)
  60.